using MicroMsg.UI.Util;
using Microsoft.Phone.Shell;
using System;
using System.Windows;
using System.Windows.Controls;
namespace MicroMsg.UI.UserContrl
{
	public class ContactListFooter : Canvas
	{
		private bool mBIsFirstLoaded = true;
		public ContactListFooter()
		{
			base.add_Loaded(new RoutedEventHandler(this.ContactListFooter_Loaded));
		}
		private void ContactListFooter_Loaded(object sender, RoutedEventArgs e)
		{
			if (this.mBIsFirstLoaded)
			{
				this.mBIsFirstLoaded = false;
				IApplicationBar applicationBar = ToolFunction.GetRootPage().get_ApplicationBar();
				if (applicationBar == null)
				{
					base.set_Height(0.0);
					return;
				}
				if (applicationBar.get_Buttons().get_Count() != 0)
				{
					base.set_Height(72.0);
					return;
				}
				base.set_Height(32.0);
			}
		}
	}
}
